package com.mobilesales.android.model.helpers;

import java.util.regex.*;

public class NullParser {
	private static final String REGEX = " (\"[a-zA-Z][a-zA-Z0-9]*\":null, | ,\n\"[a-zA-Z][a-zA-Z0-9]*\":null)";
	private static Pattern pattern = Pattern.compile(REGEX, Pattern.MULTILINE | Pattern.COMMENTS);
	
	public static String removeNulls(String input){
		Matcher matcher = pattern.matcher(input);
		String result = matcher.replaceAll("");
		return result;
	}
}
